import request from '@/utils/request'

//列表
export function tagLists(params?: any) {
    return request.get({ url: '/tag/lists', params })
}

// 添加
export function tagAdd(params: any) {
    return request.post({ url: '/tag/add', params })
}

// 编辑
export function tagEdit(params: any) {
    return request.post({ url: '/tag/edit', params })
}

// 删除
export function tagDelete(params: any) {
    return request.post({ url: '/tag/delete', params })
}

// 启用/禁用
export function tagStatus(params: any) {
    return request.post({ url: '/tag/updateStatus', params })
}

//详情
export function tagDetail(params?: any) {
    return request.get({ url: '/tag/detail', params })
}

//获取所有优势标签
export function tagAdvantageAllList(params?: any) {
    return request.get({ url: '/tag/advantageAllList', params })
}